int decision_making(float x, float k, int M1, int M2,int bet_opp)

{

int j;

//$M1 is our money $M2is the opponents money

//x is the probability which is called from the other function and x lies b/w 0 to k(uper limit caluculated  from the database

if (x<=0.3k) {

      j=-1;

            }

if (x>0.3k && x<0.6k){

      if (bet_opp>0.7*M1){

            j=-1;

            }

      else{

      j=0;

            }

}

if(x>=0.6k){

if (bet_opp>0.8*M1){

            j=-1;

            }

      else{ 

      if(M1/M2 >=2){

      j= x*(M2)/2

            }

      If(M1/M2>1 && M1/M2<2){

      j= x*(M2)/3

            }

      If(M1/M2>0.5 && M1/M2<1){

      j= x*(M1)/3

            }

     If(M1/M2<0.5){

      j=x*(M1)/2

            }

      }  
 

//J=-1 means foldding ,  j=0 means calling ,and other values suggest raising by that amount

//we pass the value of "j" as output to the next function 
